let vm = new Vue({
  el: "#app",
  data() {
    return {
      user: {
        password: "",
        password2: "",
        mobile: "",
      },
      username: getCookie('username'),
      carts: [],
      cartsTotal: 0,
      f1_tab:1,// 标签页控制
      f2_tab:1,// 标签页控制
      f3_tab:1,// 标签页控制
    }
  },
  mounted() {
    console.log("当前的username: ",this.username)
  },
  methods: {
    //获取购物车数据
    getCarts() {
      let url = ''
      axios.get(
        url,
        {
          responseType: 'json',
        }).then(resp => {

      }).catch(e => {
        console.log("接口异常: ", e)
      })
    },
  },
})